package com.cskaoyan.javase.object._7packing;

/**
 *
 * int类型取值范围是一个圆环,而不是一个区间,最大值 + 1会变成最小值
 *
 * @since 21:30
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo {
    static int end = Integer.MAX_VALUE;
    static int start = end - 5;

    public static void main(String[] args) {
        int count = 0;
        for (int i = start; i < end; i++) {
            count++;
        }
        System.out.println(count);
    }
}
